<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">

<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar bom" >
            <ul class="searchContent">
                <li ><label   id="bomCode"><@label key="bomCode.C,colon">物料清单编号：</@label></label> <input type="text" class="textInput" name="bomCode" value="${condition.bomCode!''}" /></li>
                <li ><label   id="bomText"><@label key="description.C,colon">描述：</@label></label> <input type="text" class="textInput" name="bomText" value="${condition.bomText!''}" /></li>
                <li class="lockFlag">
                    <div style="float: left;">
                        <label><@label key="lockFlag.L">锁定标记：</@label></label> <select name="lockFlag">
                            <option value=-1><@label key="all.C">所有</@label></option>
                            <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                            <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                        </select>
                    </div>
                    </li>
                    <li class="query">
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit"><@label key="query.B">查询</@label></button>
                            </div>
                        </div>
                    </li>
            </ul>
        </div>
    </div>
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
          <@buttonRight menuCode="material_add" labelKey="add.B" defalutName="新增">
            <li><a class="add" target="dialog" mask="true" width="650" height="500" href="${rc.getContextPath()}/manage/bom/addBOM?navTabId=${navTabId!''}" title="<@label key='addBom.D'>新增物料清单</@label>"><span><@label key="add.B">新增</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="material_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" target="dialog" mask="true" width="650" height="550" href="${rc.getContextPath()}/manage/bom/editBOM?id={bom_code}&navTabId=${navTabId!''}" title="<@label key='editBom.D'>编辑物料清单</@label>"><span><@label key="edit.B">编辑</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="material_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="650" height="510" href="${rc.getContextPath()}/manage/bom/viewBOM?id={bom_code}&navTabId=${navTabId!''}" title="<@label key='viewBom.D'>物料清单详情</@label>"><span><@label key="view.B">详情</@label></span>
            </a>
            </li>
            </@buttonRight>
             <@buttonRight menuCode="material_del" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/bom/deleteBOM?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelBom.M'>确认要删除选择的物料类型吗？</@label>"><span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="135" style="overflow:scroll;">
        <thead>
            <tr>
                <th width="20"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="200" orderField="bomCode"<#if (page.orderField?? && page.orderField == 'bomCode')>class="${page.orderDirection!''}"</#if>><@label key="bomCode.C">物料清单编号</@label></th>
                <th width="200" orderField="bomText"<#if (page.orderField?? && page.orderField == 'bomText')>class="${page.orderDirection!''}"</#if>><@label key="description.C">描述</@label></th>
                <th width="200" orderField="lockFlag"<#if (page.orderField?? && page.orderField == 'lockFlag')>class="${page.orderDirection!''}"</#if>><@label key="lockFlag.C">锁定标记</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as bom>
            <tr target="bom_code" rel="${bom.bomCode!''}">
                <td><input name="ids" value="${bom.bomCode!''}" type="checkbox"></td>
                <td>${bom.bomCode!''}</td>
                <td>${bom.bomText!''}</td>
                <td><#if bom.lockFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
            </tr>
            </#list> <#else>
            <tr >
                <td class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
    
</div>